/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.devel.designpatterns.visitor;

import com.devel.designpatterns.composite.*;
import com.devel.designpatterns.singleton.CompositeSingleton;

/**
 *
 * @author wm.devel
 */
public class Client {
    public static void run(Visitor v) {
        CompositeSingleton data = CompositeSingleton.instance();
        Component root = data.getRoot();
        
        System.out.println("=== Using: " + v.getClass().getSimpleName());
        root.accept(v);
    }
}
